<?php
class ControlGroup extends DirectionalContainer {
	
	public function __construct($elementId = NULL) {
		
		parent::__construct($elementId);
	}
	
	protected function renderOpeningMarkup() {
		
		$direction = '';
		if ($this->groupDirection == Direction::$groupHorizontal) {
			$direction = 'data-type="horizontal"';
		}
		
		echo '<div data-role="controlgroup" ', $direction, ' ' , $this->formatAttributes(), ' >';
	}
	
	protected function renderClosingMarkup() {
		
		echo '</div>';
	}
	
}
?>